package kr.hkit.powerjava.chapter11.work;

public class Food {
	private int calorie;
	private int price;
	private int weight;
	
	public Food() {	}
	
	public Food(int calorie, int price, int weight) {
		super();
		this.calorie = calorie;
		this.price = price;
		this.weight = weight;
	}

	public int getCalorie() {
		return calorie;
	}

	public void setCalorie(int calorie) {
		this.calorie = calorie;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	@Override
	public String toString() {
		return "Food [칼로리 = " + calorie + ", 가격 = " + price + ", 중량 = "
				+ weight + "]";
	}	
}
